package com.itbac.service.impl;

import com.itbac.dao.UserDao;
import com.itbac.domain.User;
import com.itbac.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: BacHe
 * @email: 1218585258@qq.com
 * @Date: 2021/4/19 0:20
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User getOne(Integer uid) {
        return userDao.findById(uid).orElse(null);
    }

}
